package org.firebug.spring.boot.jooq.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping(value = "/monitor")
public class MonitorController {
    @ResponseBody
    @RequestMapping(value = "/heartbeat", method = {RequestMethod.GET})
    public Map<String, String> heartbeat() {
        Map<String, String> json = new HashMap<>();
        json.put("status", "OK");
        return json;
    }
}
